<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    {% load static %}
    <style type="text/css">
        .back{
        width: 100%;
        position: absolute;
        z-index: -1;
        opacity: 0.7;
        }
    </style>


</head>
<a href="/">情绪分析</a><br>
<image class='back' src="{% static 'bg.png' %}" width="100%" height="100%"></image>
<table width="50%" border="1" align="center">
    <thead>
      <tr>
        <th>句子</th>
        <th>结果</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      {% for item in items %}
      <tr>
        <td>{{ item.name }}</td>
        <td>{{ item.result }}</td>
        <td>
          <form method="POST" action="{% url 'admindata' %}">
            {% csrf_token %}
            <input type="hidden" name="id" value="{{ item.id }}">
            <button type="submit">Delete</button>
          </form>
        </td>
      </tr>
      {% endfor %}
    </tbody>
  </table>
  